#ifndef __COMMON_BASICTYPE_H__
#define __COMMON_BASICTYPE_H__

#include "linux/config.h"

typedef char  int8;
typedef short int16;
typedef int   int32;
typedef long long int64;

typedef unsigned char      uint8;
typedef unsigned short     uint16;
typedef unsigned int       uint32;
typedef unsigned long long uint64;


typedef uint8  u8;
typedef uint16 u16;
typedef uint32 u32;
typedef uint64 u64;


#define BITS_TO_LONG(bits)                      \
  (((bits)+BIT_PER_LONG-1)/BIT_PER_LONG)

#define DECLARE_BITMAP(name, bits)              \
  u32 name[BITS_TO_LONG(bits)]

#endif // __COMMON_BASICTYPE_H__
